<script language='JavaScript' type='text/javascript'>
function showDiv(divId)
{
	if (document.getElementById(divId).style.display=="none")
	 {
	   document.getElementById(divId).style.display='block';
	 }
	 else
	 {
		document.getElementById(divId).style.display='none';
	 }

}
</script>

<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

	<% if (params['node'] == "salesforce") %>
		<h2>Salesforce > Adapter Error</h2>
	<%elsif params['node'] == "sugarcrm" %>
		<h2>SugarCRM > Adapter Error</h2>
	<%elsif params['node'] == "basecamp" %>
		<h2> Basecamp > Adapter Error</h2>
	<%elsif params['node'] == "amazonws" %>
		<h2> Amazon > Adapter Error</h2>
	<%end%>

  <% for name in [:simplemsg] %>
  <% if flash[name] %>
    <%= "<div class='message-justmsg'> #{flash[name]} </div>" %>
  <% end %>
<% end %>

  <% for name in [:notice, :warning, :message] %>
  <% if flash[name] %>
    <%= "<div class='message-fatal'> #{flash[name]} </div>" %>
  <% end %>
<% end %>

<!-- input type="button" value="<<Back" onclick="javascript:history.go(-1);"/ -->
<!-- input type="image" src="/themes/odotclassic/images/btn_back.png" onclick="javascript:history.go(-1);" / -->
<a href="javascript:history.go(-1);"><img src="/themes/odotclassic/images/btn_back.png"/></a>

<%if(@detailed_msg!=nil)%>
<br/>
<div class='message-justmsg'> 
	<font color="black">
	<br/>
	<a href="javascript:showDiv('login_div')">See Error in detail</a>
  		<div  id="login_div" style="display: none;">
				<%=@detailed_msg%> 
  		</div>

  </font>
</div>
<%end%>
</div>
